package com.mdd.admin.validate.competition;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("赛事列创建参数")
public class CompetitionSiteCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;


    private Integer competitionId;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "名称")
    private String name;

    @NotNull(message = "content参数缺失")
    @ApiModelProperty(value = "内容")
    private String address;

    @NotNull(message = "playType参数缺失")
    @ApiModelProperty(value = "比赛方式：1:男单打，2:女单打，3:男双打，4:女双打，5:男女混打")
    private Integer playType;

    @NotNull(message = "schedule参数缺失")
    @ApiModelProperty(value = "赛程：初赛，半决赛，决赛")
    private Integer schedule;
}
